#ifndef NGALOIS_H
#define NGALOIS_H

class ngalois
{
public:
    ngalois(unsigned generador);
    unsigned mult(unsigned op1,unsigned op2);
    unsigned* antilog;
    unsigned* log;
    void generarTabla(unsigned generador);
    int grado; // si GF(2^w) => grado=w
private:
    void imprbin(unsigned int numero);
    int cantidad;
    unsigned carrymask;

};

#endif // NGALOIS_H
